@use 'sass:math';

:root {
    --design-width: #{$vmDesignWidth}px;
    --design-multiple: #{$vmDesignMultiple};
    --max-window: #{$vmMaxWindow};
    --min-window: #{$vmMinWindow};
}

/* #ifdef H5 */
html {
    --body-width: #{$vmDesignWidth}px;

    // --tabbar-height: 50Px; 直接使用 --tab-bar-height
}

body {
    min-width: var(--min-window);
    font-size: 24px;
    line-height: 1;
    color: #000;
    background: #fff;

    div,
    span {
        box-sizing: border-box;
    }
}

/* #endif */
view,
text {
    box-sizing: border-box;
}

page {
    box-sizing: border-box;
}

.line-2,
[line-2=''],
.line-3,
[line-3=''],
.line-4,
[line-4=''] {
    white-space: break-spaces;
}


.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: rgb(255, 255, 255, 0.1);
}

.router-loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: rgb(255, 255, 255, 0.1);
}

.fixed-center {
    left: calc((100% - var(--body-width)) / 2) !important;
    width: 100%;
    min-width: var(--min-window);
    max-width: var(--max-window);
}


/* 通用样式 */

.slide-left-enter,
.slide-right-leave-active {
    opacity: 0;
    transform: translate(100%, 0);
}

.slide-left-leave-active,
.slide-right-enter {
    opacity: 0;
    transform: translate(-100%, 0);
}

/* .fade-leave-active below version 2.1.8 */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}
